import { ref } from 'vue'
import { defineStore } from 'pinia'

const useFenLeiPinia = defineStore('useFenLeiPinia', () => {
// 分类的数据
  const fenLeiString = ref('')

  const updateFenLeiString = (newFenLeiString) => {
      fenLeiString.value = JSON.parse(JSON.stringify(newFenLeiString))
      return fenLeiString.value
  }

   return {
    fenLeiString,
    updateFenLeiString
   }
},{
   persist: true,
})

export default useFenLeiPinia

